
<%@page import="org.json.JSONObject"%>
<%@page import="com.sopt.member.FriendsMember"%>
<%@page import="com.sopt.member.MemberProc"%>
<%@page import="com.sopt.comm.util.SoptHashMap"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Date"%><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.sopt.comm.util.RequestManager"%>
<%
int i = 1;
System.out.println(i + "초 동안 쉬겠습니다...");
Date qdate = new GregorianCalendar(0,0,0).getTime();
MemberProc mem = new MemberProc();

try {
  Thread.sleep(i * 1000);
} catch (InterruptedException e) { }
	SoptHashMap hm = RequestManager.getRequest(request);
	
	System.out.println(hm.toString());
	FriendsMember memDTO = new FriendsMember();
	memDTO.setMember_number(hm.get("NUMBER").toString());
	String result = mem.regMember(memDTO);
	JSONObject json = new JSONObject();
	JSONObject exist = new JSONObject();
	exist.put("exist",result);
	json.put("result",exist);
	out.print(json.toString());
%>
